package net.mappoint.s.mappoint_30;

import java.net.MalformedURLException;
import java.net.URL;
import javax.xml.namespace.QName;
import javax.xml.ws.WebEndpoint;
import javax.xml.ws.WebServiceClient;
import javax.xml.ws.WebServiceFeature;
import javax.xml.ws.Service;

/**
 * The common service contains classes, methods, and properties that are common to the find, route, and render services.  The common service also provides basic utility functions that can be used in the Microsoft MapPoint Web Service applications.</p><p class="intro">Read the <a href="default.htm">formal description</a> of the MapPoint Web Service for more information.
 *
 * This class was generated by Apache CXF 2.5.0
 * 2011-12-06T10:47:11.505+08:00
 * Generated source version: 2.5.0
 * 
 */
@WebServiceClient(name = "CommonService", 
                  wsdlLocation = "http://service.mappoint.net/standard-30/mappoint.wsdl",
                  targetNamespace = "http://s.mappoint.net/mappoint-30/") 
public class CommonService extends Service {

    public final static URL WSDL_LOCATION;

    public final static QName SERVICE = new QName("http://s.mappoint.net/mappoint-30/", "CommonService");
    public final static QName CommonServiceSoap = new QName("http://s.mappoint.net/mappoint-30/", "CommonServiceSoap");
    static {
        URL url = null;
        try {
            url = new URL("http://service.mappoint.net/standard-30/mappoint.wsdl");
        } catch (MalformedURLException e) {
            java.util.logging.Logger.getLogger(CommonService.class.getName())
                .log(java.util.logging.Level.INFO, 
                     "Can not initialize the default wsdl from {0}", "http://service.mappoint.net/standard-30/mappoint.wsdl");
        }
        WSDL_LOCATION = url;
    }

    public CommonService(URL wsdlLocation) {
        super(wsdlLocation, SERVICE);
    }

    public CommonService(URL wsdlLocation, QName serviceName) {
        super(wsdlLocation, serviceName);
    }

    public CommonService() {
        super(WSDL_LOCATION, SERVICE);
    }
    

    /**
     *
     * @return
     *     returns CommonServiceSoap
     */
    @WebEndpoint(name = "CommonServiceSoap")
    public CommonServiceSoap getCommonServiceSoap() {
        return super.getPort(CommonServiceSoap, CommonServiceSoap.class);
    }

    /**
     * 
     * @param features
     *     A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy.  Supported features not in the <code>features</code> parameter will have their default values.
     * @return
     *     returns CommonServiceSoap
     */
    @WebEndpoint(name = "CommonServiceSoap")
    public CommonServiceSoap getCommonServiceSoap(WebServiceFeature... features) {
        return super.getPort(CommonServiceSoap, CommonServiceSoap.class, features);
    }

}
